//
//  AFExtensionDataConversion.m
//  TBNetworking_Example
//
//  Created by apple on 2018/8/8.
//  Copyright © 2018年 lzb. All rights reserved.
//

#import "AFExtensionDataConversion.h"


@implementation AFExtensionDataConversion
/**
 模型转换为字典
 
 @param model 转化的模型类
 @return json
 */
+ (NSDictionary *)JSONDictionaryFromModel:(id)model
{
    return [model zb_keyValues];
}

/**
 字典转化为model
 
 @param dict
 @return modelClass
 */
+ (id)modelFromJSONDictionary:(NSDictionary *)dict ToModelClass:(Class)modelClass
{
    return [modelClass zb_objectWithKeyValues:dict];
}
@end
